const fun = (start?: Number, end?: Number): void => {
  console.log(start, end);
};

fun();
fun(1);
fun(1, 2);